<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<link rel="stylesheet" type="text/css" href="__THEMES__/style/common.css" />
       	<link rel="stylesheet" type="text/css" href="__THEMES__/style/admin_ui.css" />
       	<script type="text/javascript" src="__JS__/jQuery/jquery.js"></script>
       	<script type="text/javascript" src="__JS__/jQuery/plugin/troperate.js"></script>
       	<include file="Public:js_navigation" />
        <include file="Public:js_sidebar" />
		<script type="text/javascript">
            $(function(){
                $('.displayImg').click(function(){
					if($('.tr_'+$(this).attr('rel')).is(":visible") == false ){
						$('.tr_'+$(this).attr('rel')).show();
						$(this).attr('src','__THEMES__/images/hidden.gif');
						$(this).removeClass('displayImg');
						$(this).addClass('hiddenImg');
					}else{
						$('.tr_'+$(this).attr('rel')).hide();
						$(this).attr('src','__THEMES__/images/display.gif');
						$(this).removeClass('hiddenImg');
						$(this).addClass('displayImg');
					}
				});
            });
        </script>
        <style type="text/css">
			.gr_list tr td			{ border-bottom:1px solid #e5e5e5; }
		</style>
		<title>{:C('ADMIN_TITLE')}</title>
	</head>
	<body>
		<include file="Public:header" />
        
        <div class="layout">
            
            <include file="Public:position" />
            
            <table class="warp" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="sidebar" valign="top">
                        <include file="Public:sidebar" />
                    </td>
                    <td class="contents" valign="top">
                        
                        <div class="button">
				    		<a href="{:U('add?tag='.$_GET['tag'])}" class="default_button" id="add_category"><span></span>添加一级分类</a>
				    	</div>
                        
                        <div class="a_table">
                        <form action="__URL__/otheraction" method="post">
						<table cellspacing="1" width="100%" class="gr_list" style="background:#fff; border: 1px solid #ddd;">
							<tr style="background: #f0f7ff; font-weight: bold;">
								<td width="20" align="center" height="20" class="left_text">排序</td>
								<td width="60" align="center" height="20" class="left_text">编号</td>
								<td width="20" class="left_text"></td>
								<td align="center" class="left_text">分类名称</td>
								<td align="center" class="left_text">上级分类</td>
								<td width="150" align="center" class="left_text">状态</td>
								<td align="center" class="left_text">类型</td>
								<td width="210" align="center" class="left_text">操作</td>
							</tr>
							{$list}
						</table>
						<br />
						<div class="submit_default_box"><input type="submit" name="update_sort" class="submit_default" id="update_sort" value="更新排序" /><span class="submit_default_icon" id="submit_icon"></span></div>
						</form>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        
        <include file="Public:footer" />
	</body>
</html>